<?php

/**
 * WP Showroom Admin Thumbnail Preview
 *
 * @package
 */


require_once '../../../wp-config.php';
require_once '../../../wp-admin/admin.php';
require "inc.thumb.php";


global $user_ID;


$file = $_GET['file'];

if ($_GET['where'] == 0) {
	$where = 'waiting/';
}
else {
	$where = 'upload/';
}

$path = WPSR_FILEPATH.$where.$user_ID."/".$file;

$thumb = new easyphpthumbnail;
$thumb -> Thumbsize = 200;
$thumb -> Createthumb($path);
?>